package com.application.magazine;

import android.app.Activity;
import android.util.DisplayMetrics;

public class GlobalVariable{

	public static String LARGE_SCREEN_SIZE = "1";
	public static String MEDIUM_SCREEN_SIZE= "0";
	public static String BLACK_COLOR = "#000000";
	public static String BLUE_COLOR = "#00a9e0";
	public static String NO_NETWORK_CONNECTION ="No Network Connection!!!";
	public static String LOADING_DIALOG_MESSAGE = "Loading Content ...";
	public static String NO_DATA_FOUND = "No data found from web!!!";
	public static String URL_MAGAZINE_ALL = "http://camt-science.agter-technology.co.th/v2/Magazines/getAll.json";
	public static String URL_NEWS_ALL = "http://camt-science.agter-technology.co.th/v2/News/getAll.json";
	public static String URL_NEWS_GET = "http://camt-science.agter-technology.co.th/v2/News/get.json";
	public static String URL_POST_STAT = "http://camt-science.agter-technology.co.th/v2/store_stats.json";
	public static int showMenu = 1;
	public static String finalScreenSize="0";
			
	public int SlidingMenuWidth(Activity act){
		int expectedWidth =0;
		DisplayMetrics displaymetrics = new DisplayMetrics();
		act.getWindowManager().getDefaultDisplay().getMetrics(displaymetrics);
		int initWidth = displaymetrics.widthPixels;
		if(GlobalVariable.MEDIUM_SCREEN_SIZE.equals(GlobalVariable.finalScreenSize)){
			expectedWidth = (75*initWidth)/100;
		}else{
			expectedWidth = (42*initWidth)/100;
		}
		return expectedWidth;
	}
//	public static void MakeToast(Activity use, StoreStatsDto dto){
//		Toast.makeText(use, dto.getAge()+"|"+dto.getBmi()+"|"+dto.getGender()+"|"+dto.getHeight()+"|"+dto.getImei()+"|"+dto.getWeight(), Toast.LENGTH_SHORT).show();
//		
//	}
}
